﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using FwProject.ShoppingMall.Shop;

namespace FwProject.Shop.Dto
{
    [AutoMap(typeof(ShopProduct))]
    public class ShopProductDto: EntityDto<Guid>, ICreationAudited
    {
        /// <summary>
        /// 商品分类id
        /// </summary>
        [Display(Name = "商品分类编号")]
        public Guid ShopTypeid { get; set; }

        [Display(Name = "商品宣传图片")]
        public string ImagePic { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [Display(Name = "商品名称")]
        public string ProductName { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        [Display(Name = "商品编号")]
        public string ProductNumber { get; set; }
        /// <summary>
        /// 市场价格
        /// </summary>
        [Display(Name = "市场价格")]
        public decimal MarketPrice { get; set; } = 0m;
        /// <summary>
        /// 商品介绍
        /// </summary>
        [Display(Name = "商品介绍")]
        public string ProductDetails { get; set; }
        /// <summary>
        /// 规格销售价
        /// </summary>
        [Display(Name = "规格销售价")]
        public decimal SpcemarketPrice { get; set; } = 0m;
        /// <summary>
        /// 规格成本价
        /// </summary>
        [Display(Name = "规格成本价")]
        public decimal SpcecostPrice { get; set; } = 0m;
        /// <summary>
        /// 重量
        /// </summary>
        [Display(Name = "重量")]
        public float SpceWeight { get; set; } = 0;
        /// <summary>
        /// 是否开启规格
        /// </summary>
        [Display(Name = "是否开启规格")]
        public bool SpceIsActive { get; set; } = false;
        /// <summary>
        /// 品牌id
        /// </summary>
        [Display(Name = "品牌编号")]
        public Guid? Brandid { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [Display(Name = "单位")]
        public string Unit { get; set; }
        /// <summary>
        /// 是否上架
        /// </summary>
        [Display(Name = "是否上架")]
        public bool IsGrounding { get; set; } = true;
        /// <summary>
        /// 供应商id
        /// </summary>
        [Display(Name = "供应商编号")]
        public Guid ShopSupplierid { get; set; }
        /// <summary>
        /// 销售模式
        /// </summary>
        [Display(Name = "销售模式")]
        public ShopProductFlag ShopProductFlag { get; set; } = ShopProductFlag.正常;

        public long? CreatorUserId { get; set; }
        public DateTime CreationTime { get; set; }
    }
}
